const { router } = require('../../koa/koa-main')
const { queryUser } = require('../../services/user')

router.get('/queryUser', async (ctx, next) => {
  let { data } = await queryUser(ctx.request.query)
  ctx.response.body = data
  await next()
})
